 package com.bmps.springcloud.insuredmicroservice.model.accept.resquest;

 import org.apache.commons.lang3.builder.EqualsBuilder;
 import org.apache.commons.lang3.builder.HashCodeBuilder;

 import javax.validation.Valid;
 import javax.validation.constraints.NotEmpty;
 import java.io.Serializable;
 import java.util.List;

 /**
  *  @author lyw
  *  @date 2019/07/24
  */
 public class DisclosuresModel implements Serializable {

     @Valid
     @NotEmpty(message = "节点(Disclosure)数量不能为0")
	 private List<DisclosureModel> disclosure;

     public List<DisclosureModel> getDisclosure() {
         return disclosure;
     }

     public void setDisclosure(List<DisclosureModel> disclosure) {
         this.disclosure = disclosure;
     }

     @Override
     public boolean equals(Object o) {
         if (this == o) {
             return true;
         }

         if (o == null || getClass() != o.getClass()) {
             return false;
         }

         DisclosuresModel that = (DisclosuresModel) o;

         return new EqualsBuilder()
                 .append(disclosure, that.disclosure)
                 .isEquals();
     }

     @Override
     public int hashCode() {
         return new HashCodeBuilder(17, 37)
                 .append(disclosure)
                 .toHashCode();
     }

     @Override
     public String toString() {
         return "DisclosuresModel{" +
                 "disclosure=" + disclosure +
                 '}';
     }
 }
